package com.base.taskreports.reports.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.base.taskreports.common.annotation.TBatchLog;
import com.base.taskreports.reports.entiyt.master.TIndicatorsEntity;
import com.base.taskreports.reports.entiyt.pql.TblCouponOperaFlowEnyity ;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.base.taskreports.reports.dao.pql.TblCouponOperaFlowDao;
import com.base.taskreports.reports.entiyt.pql.TblCouponOperaFlowEnyity;
import com.base.taskreports.reports.service.TblCouponOperaFlowService;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张玉涛
 * @since 2021-11-09
 */
@DS("pql")
@Service("tblCouponOperaFlowService")
public class TblCouponOperaFlowServiceImpl extends ServiceImpl<TblCouponOperaFlowDao, TblCouponOperaFlowEnyity> implements TblCouponOperaFlowService {

    public List<TIndicatorsEntity> getPQL_M001(String previousDay) {
        return baseMapper.getPQL_M001(previousDay
                ,previousDay.replace("-","")
                ,previousDay.substring(8)) ;
    }

    public List<TIndicatorsEntity> getPQL_M002(String previousDay) {
        return baseMapper.getPQL_M002(previousDay
                ,previousDay.replace("-","")
                ,previousDay.substring(8)) ;
    }
}
